All Functions of Week 10

filter

{dplyr}

Filter out rows of a data frame according to logical vector

c

{base}

Combine values/vectors into a vector

set.seed

{base}

Initialise a pseudorandom number generator.

geom_segment

{GGPLOT2}

Generates a line segment or curve

ggplot

{GGPLOT2}

Create a ggplot graph

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

ecdf

{stats}

Compute an empirical cumulative distribution function

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

summary

{base}

Obtain summary statistics or detailed regression output

theme

{GGPLOT2}

Set theme for GGPLOT2

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

element_text

{GGPLOT2}

Customise text in GGPLOT2

as.numeric

{base}

Coerce a vector to numeric

sqrt

{stats}

Square root

setwd

{base}

Set Working Directory

library

{base}

Load an R package

cut

{base}

Convert Numeric to Factor

sd

{stats}

Get standard deviation of a vector

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

sample_n

{dplyr}

Sample a number of observations from a data frame

mean

{base}

Get mean of a vector

ylab

{GGPLOT2}

Label the y axis (ggplot)

mutate

{dplyr}

Modify/create a column in a data frame

stat_ecdf

{GGPLOT2}

Compute empirical cumulative distribution

geom_bar

{GGPLOT2}

Generates a bar chart

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

The end!